// 遍历实例方法（原型方法）
export const instanceMethods = (prototype: any) => {
  return Object.getOwnPropertyNames(prototype).filter(
    (name) => name !== "constructor" && typeof prototype[name] === "function"
  );
};

// 遍历静态方法
export const staticMethods = (Class: any) => {
  return Object.getOwnPropertyNames(Class).filter(
    (name) => typeof Class[name] === "function"
  );
};
